package com.ewo.service.impl;

import com.ewo.entity.User;
import com.ewo.mapper.UserMapper;
import com.ewo.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    UserMapper userMapper;

    @Override
    public List<User> findAllUser() {
        return userMapper.findAllUser();
    }

    @Override
    public int addUser(User user) {
        return userMapper.addUser(user);
    }
}
